﻿using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SingleUserMall.Items
{
    /// <summary>
    /// 商品规格
    /// </summary>
    public class ItemSpec : FullAuditedEntity<long>
    {
        /// <summary>
        /// 商品id
        /// </summary>
        public long ItemId { get; set; }
        [ForeignKey("ItemId")]
        public virtual Item Item { get; set; }
        /// <summary>
        /// 规格编号
        /// </summary>
        [Required, MaxLength(50)]
        public string SpecNo { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        [Required, MaxLength(100)]
        public string Spec { get; set; }
        /// <summary>
        /// 原价
        /// </summary>
        public decimal OriginalPrice { get; set; }
        /// <summary>
        /// 零售价格
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 会员价格
        /// </summary>
        public decimal VipPrice { get; set; }
        /// <summary>
        /// 超級会员价格
        /// </summary>
        public decimal SuperVipPrice { get; set; }
        /// <summary>
        /// 团购价格
        /// </summary>
        public decimal GroupPrice { get; set; }
        /// <summary>
        /// 限时购价格
        /// </summary>
        public decimal LimitPrice { get; set; }
        /// <summary>
        /// 图片
        /// </summary>
        public string Picture { get; set; }
        /// <summary>
        /// 安装费用
        /// </summary>
        public decimal PerPrice { get; set; }
        /// <summary>
        /// 砍价底价
        /// </summary>
        public decimal BargainPrice { get; set; }
    }
}
